package com.jxd.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("travel_info")
public class TravelInfo {
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    private int empno;

    @TableField("departure_time")
    private String departureTime;

    @TableField("arrival_time")
    private String arrivalTime;
    private double day;
    private String instruction;

    @TableField("reimbursement_time")
    private String reimbursementTime;

    private int subsidy;
    private double reimbursement;

    public TravelInfo(int empno, String departureTime, String arrivalTime, double day, String instruction, String reimbursementTime, int subsidy, double reimbursement) {
        this.empno = empno;
        this.departureTime = departureTime;
        this.arrivalTime = arrivalTime;
        this.day = day;
        this.instruction = instruction;
        this.reimbursementTime = reimbursementTime;
        this.subsidy = subsidy;
        this.reimbursement = reimbursement;
    }
}
